<template>
  <el-icon>
    <component :is="name" :size="24"></component>
  </el-icon>
</template>

<script lang="ts">
export default {
  name: 'DyIcon',
  props: {
    name: {
      type: String,
      default: 'Search',
    }
  }
}
</script>